package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.WarehouseStore;
import cn.stylefeng.guns.modular.basic.model.params.WarehouseStoreParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicPutgoodsResult;
import cn.stylefeng.guns.modular.basic.model.result.WarehouseStoreResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 仓库门店关系 服务类
 * </p>
 *
 * @author wp
 * @since 2025-08-26
 */
public interface WarehouseStoreService extends IService<WarehouseStore> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-08-26
     */
    void add(WarehouseStoreParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-08-26
     */
    void delete(WarehouseStoreParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-08-26
     */
    void update(WarehouseStoreParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-08-26
     */
    WarehouseStoreResult findBySpec(WarehouseStoreParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-08-26
     */
    List<WarehouseStoreResult> findListBySpec(WarehouseStoreParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-08-26
     */
     LayuiPageInfo findPageBySpec(WarehouseStoreParam param,String condition);

    List<BasicPutgoodsResult> findByStoreIdAndWarehouseId(String storeId, String warehouseId);
}
